﻿<%@ Page Language="C#" MasterPageFile="~/ComMasterPage.master" AutoEventWireup="true" CodeFile="LookApplyer.aspx.cs" Inherits="LookApplyer" Title="长春校园人才网-职位申请信息" %>
<asp:Content ID="Content2" ContentPlaceHolderID="headCompany" runat="server">
    <link href="css/stujob.css" rel="stylesheet" />
    <link href="css/default.css" rel="stylesheet" />
    <link href="css/Abort.css" rel="stylesheet" />
</asp:Content> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="leftmain">
        <div class="leftBox">
            <div class="loginChioce">
                <span class="leftTop">招聘职位</span>
            </div>
            <div>
                <asp:DataList ID="DataList1" runat="server" CellPadding="3" DataKeyField="cwid"
                DataSourceID="SqlDataSource1" Font-Strikeout="False" HorizontalAlign="left" Height="25px">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server"
                        NavigateUrl='<%# "LookApplyer.aspx?cwid="+Eval("cwid") %>'
                        Text='<%# Eval("cwname") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                SelectCommand="SELECT * FROM [tb_comwant] WHERE ([cpid] = @cpid)">
                <SelectParameters>
                    <asp:SessionParameter Name="cpid" SessionField="com" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            </div>
        </div>
    </div>
    
    <div class="rightmain" style="width: 768px;">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">当前位置</span></div>
            <div class="rightHMiddle2">
                <span>
                    <a href="ComDefault..aspx" class="moreRight" style="float: left;">首页</a> <span class="jian">></span>
                    <a href="LookApplyer.aspx" class="moreRight" style="float: left;">职位申请人</a><asp:Label ID="Label2" runat="server"></asp:Label>
                </span>
            </div>
            <div class="rightHRight"></div>
        </div>
        <div class="rinfo" style="margin-top:10px;border:1px solid #dddddd;">
            <asp:SqlDataSource ID="SqlDataSource2" runat="server"
                ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                SelectCommand="SELECT tb_jobapply.jaid, tb_jobapply.pid, tb_jobapply.cwid, tb_jobapply.jatime, tb_jobapply.islook, tb_person.pname, tb_person.psex, tb_person.page, tb_person.ptel, tb_person.pemail, tb_person.pknowledge, tb_person.pschool FROM tb_jobapply INNER JOIN tb_person ON tb_jobapply.pid = tb_person.pid WHERE (tb_jobapply.cwid = @cwid)">

                <SelectParameters>
                    <asp:QueryStringParameter Name="cwid" QueryStringField="cwid" Type="Int32" />
                </SelectParameters>

            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                DataKeyNames="jaid" DataSourceID="SqlDataSource2" CellPadding="4"
                ForeColor="#333333" GridLines="None" Width="755px" OnRowDeleting="GridView1_RowDeleting" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20">
                <FooterStyle BackColor="#149edd" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:BoundField DataField="pname" HeaderText="申请人" SortExpression="pname" />
                    <asp:BoundField DataField="psex" HeaderText="性别" SortExpression="psex" />
                    <asp:BoundField DataField="page" HeaderText="年龄" SortExpression="page" />
                    <asp:BoundField DataField="ptel" HeaderText="电话" SortExpression="ptel" />
                    <asp:BoundField DataField="pemail" HeaderText="E-Mail"
                        SortExpression="pemail" />
                    <asp:BoundField DataField="pknowledge" HeaderText="学历"
                        SortExpression="pknowledge" />
                    <asp:BoundField DataField="pschool" HeaderText="学校" SortExpression="pschool" />
                    <asp:BoundField DataField="jatime" HeaderText="申请时间" SortExpression="jatime" />
                    <asp:TemplateField HeaderText="简历" SortExpression="pid">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("pid") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink2" runat="server"
                                NavigateUrl='<%# "ShowRsume.aspx?pid="+Eval("pid") %>' Target="_blank">查看</asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick='return window.confirm("确认删除！")' CommandName="Delete">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#149edd" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#149edd" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Label ID="Label1" runat="server"></asp:Label>
        </div>
    </div>
</asp:Content>

